package com.sina.shop.manage.service.goods;

import com.sina.shop.core.BaseService;
import com.sina.shop.core.exception.client.DataException;
import com.sina.shop.core.exception.server.CreateException;
import com.sina.shop.core.exception.server.ResourceExistsException;
import com.sina.shop.core.exception.server.UpdateException;
import com.sina.shop.domain.goods.GoodsComment;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * 段浩杰   2018-01-15-18:32
 */
public interface GoodsCommentManageService extends BaseService {

    List<Map<String, Object>> getGoodsCommentIdAndName();

    GoodsComment getGoodsCommentById(Long id);

    int deleteGoodsComment(Long id) throws DataException, UpdateException;

    GoodsComment saveGoodsComment(GoodsComment goodsComment) throws CreateException, ResourceExistsException, DataException;

    GoodsComment updateGoodsComment(GoodsComment goodsComment) throws UpdateException, DataException;

    List<Map<String, Object>> getGoodsCommentList(GoodsComment goodsComment, Long count[]);

    List<GoodsComment> getGoodsCommentList();
}
